package com.ymatou.iapi.withdraw.service;

import net.sf.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*提现完成的总金额--推手提现记录查询Call
*FreeMaker Template自动生成代码
*/
public class HunterQueryCompleteAmountCall extends YmatouBaseCall{
	private static String opurl ="/api/WithDrawQuery/HunterQueryCompleteAmount";
	
	public HunterQueryCompleteAmountCall() {
		super(EnvSetup.getSystemUrl("withdraw_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public String getTotal()
	 {
	   return  JSONObject.fromObject(getString("Data")).getString("totalAmounts");
	 }
	
	public String getSuccess()
	 {
	   return  getString("Success");
	 }
}